<?php
$id = $epg['id'];
$data = json_decode(file_get_contents('http://epg.112114.xyz/?ch='.$id));
$data = $data->epg_data;
for($i = 0; $i <= count($data) - 1; $i++) {
    echo '<li><span>'.$data[$i]->start.'&nbsp&nbsp&nbsp&nbsp'.$data[$i]->title.'</span></li>';
};